<template>
	<view class="container-list">
		
		<image class="major-left-Image" :src=titleimgsrc mode="scaleToFit"></image>

		<view class="flex-row space-between" v-for="(value, index) in info" @tap="onClickItem(value.special_id)">
			<view class="flex-row major-leftview">
				<image class="mojor-leftview-image"
					:src="'https://mcdn.chatgk.com/xcx/static/images/searchmajor/searchmajorrank'+ (index+1) + '.png'" mode="scaleToFit">
				</image>
				<text class="mojor-leftview-text">{{value.name}}</text>
			</view>
			<view class="">
				<image class="major-leftview-rightimage" src="https://mcdn.chatgk.com/xcx/static/images/searchcollege/jiantou_hui.png"
					mode="aspectFit"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			titleimgsrc: '',
			info: {}
		},
		methods: {
			onClickItem(cellid) {
				this.$emit("onClickItem", cellid)
			}
		}
	}
</script>

<style>
	.container-list {
		margin: 24rpx 32rpx 0 32rpx;
		padding: 0 0 20rpx 0;
		background-color: #FFF;
		border-radius: 20rpx;
		position: relative;
		/* background-image: url('https://mcdn.chatgk.com/xcx/static/images/searchmajor/tjrandbg.png');
		background-repeat: no-repeat;
		background-size: cover; */
	}


	.major-left-Image {
		width: 146rpx;
		height: 50rpx;
		margin-top: 24rpx;
		margin-left: -10rpx;
		margin-bottom: 24rpx;
	}

	.major-leftview {
		height: 60rpx;
	}

	.major-leftview-leftplace {
		align-items: center;
	}

	.mojor-leftview-image {
		margin-left: 32rpx;
		width: 40rpx;
		height: 32rpx;
	}

	.mojor-leftview-text {
		margin-left: 28rpx;
		background-color: white;
		color: #464646;
		font-size: 24rpx;
		font-weight: bold;
		color: #464646;
	}

	.major-leftview-rightimage {
		margin-right: 20rpx;
		width: 20rpx;
		height: 20rpx;
	}
</style>
